﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LeftMenu.ascx.cs" Inherits="CL.UnionWeb.ascx.LeftMenu" %>
<div class="tpl-left-nav tpl-left-nav-hover">
    <div class="tpl-left-nav-title">
        推广联盟栏目
    </div>
    <div class="tpl-left-nav-list">
        <ul class="tpl-left-nav-menu">
            <li class="tpl-left-nav-item">
                <a href="/union/index.aspx" class="nav-link">
                    <i class="am-icon-home"></i>
                    <span>首页</span>
                </a>
            </li>
             <li class="tpl-left-nav-item">
                <a href="/union/MyPromotion.aspx" class="nav-link  tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>我要推广</span>
                </a>
            </li>
            <li class="tpl-left-nav-item">
                <a href="/union/Extensionecord.aspx" class="nav-link  tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>推广记录</span>
                </a>
            </li>
            <li class="tpl-left-nav-item">
                <a href="/union/MyNotice.aspx" class="nav-link tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>消息中心</span>
                    <i class="tpl-left-nav-content tpl-badge-danger"></i>
                </a>
            </li>
            <li class="tpl-left-nav-item">
                <a href="/union/MyBrokerage.aspx" class="nav-link tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>结算中心</span>
                    <i class="tpl-left-nav-content tpl-badge-danger"></i>
                </a>
            </li>

            <li class="tpl-left-nav-item">
                <a href="/union/Brokerage.aspx" class="nav-link tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>预计分成</span>
                    <i class="tpl-left-nav-content tpl-badge-danger"></i>
                </a>
            </li>
             <li class="tpl-left-nav-item">
                <a href="/union/MyAccount.aspx" class="nav-link tpl-left-nav-link-list">
                    <i class="am-icon-wpforms"></i>
                    <span>我的信息</span>
                    <i class="tpl-left-nav-content tpl-badge-danger"></i>
                </a>
            </li>
        </ul>
    </div>
</div>
<script src="/js/jquery.min.js"></script>
<script type="text/javascript" >
    $(function () {       
        //var path = window.location.pathname;
        //if (path.indexOf("Index") > -1) {
        //    $(".tpl-left-nav-menu li").eq(0).children("a").addClass("active");
        //}
        //$(".tpl-left-nav-menu li a").removeClass("active");
        //$(".tpl-left-nav-menu li a").removeClass("tpl-left-nav-link-list");
        //$(".tpl-left-nav-menu li").each(function () {
        //    if ($(this).children("a").attr("href") == path) {
        //        $(this).children("a").addClass("active");
        //    }else
        //        $(this).children("a").addClass("tpl-left-nav-link-list");
        //});  

        var listA = $(".tpl-left-nav-list .tpl-left-nav-menu a");
        for (var i = 0; i < listA.length; ++i) {
            if (-1 < location.href.indexOf($(listA[i]).attr("href")))
                $(listA[i]).addClass("active");
        }
    });
</script>